#include<iostream>
using namespace std;
const int N = 1e5 + 10;
int arr[N];
int n;
int main()
{
	cin >> n;
	int ma = -110;
	for (int i = 0; i < n; i++) {
		int a;
		cin >> a;
		arr[a] = 1;
		if (a > ma) {
			ma = a;
		}
	}
	for (int i = 0; i <= ma; i++) {
		if (arr[i]==1) {
			cout << i << " "; 
		}
	}
	return 0;
}